package com.bezdelnick.forum.dao;

import com.bezdelnick.forum.domain.AppUser;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 17.08.12
 * Time: 15:13
 * To change this template use File | Settings | File Templates.
 */
public interface IAppUserDao {
    List<AppUser> loadUsers();
    List<AppUser> loadModerators();
    List<AppUser> loadModeratorsWithoutEnabled();
    AppUser getUserById(long id);
    AppUser getUserByName(String name);
    boolean insertUser(AppUser appUser);
    boolean updateUser(AppUser appUser);
    boolean deleteUser(long id);
}
